<link th:href="@{/js/ui-table/ui-table.css}" rel="stylesheet"/>
<div class="select-docs">
</div>
<script th:src="@{/js/ui-table/ui-table.js}"></script>
<script>
    $(".select-docs").ui_table(
        "/select.html", {
            searchcol: 'title',
            searchtext: '',
            sortcol: 'docid',
            sorttext: 'desc',
            pagesize: 10,
            pageNum: 1
        }, {
            pagesize: [10, 20, 30, 40, 50],
            option:'',
            searchcol: ["title", "keyword", "word"],
            searchtext: ["标题", "关键字", "简介"],
            header: '<td d="docid" style="min-width:40px;"><div class="ui-checkbox"><i></i><span></span><input type="hidden" value="0" /></div></td>' +
                '<td d="docid"  class="ui-table-sort" style="width:40px;">文档ID</td>' +
                '<td d="title" class="ui-table-sort" style="min-width:60px;">标题</td>' +
                '<td d="typename" class="ui-table-sort" style="min-width:60px;">分类</td>' +
                '<td d="preview" class="ui-table-sort" style="min-width:60px;">免费</td>' +
                '<td d="readpay" class="ui-table-sort" style="min-width:60px;">阅读币</td>' +
                '<td d="downpay" class="ui-table-sort" style="min-width:60px;">下载币</td>' +
                '<td d="isimp" class="ui-table-sort" style="min-width:60px;">标识</td>' +
                '<td d="readcount" class="ui-table-sort" style="min-width:60px;">阅读量</td>' +
                '<td d="downcount" class="ui-table-sort" style="min-width:60px;">下载量</td>' +
                '<td d="pcount" class="ui-table-sort" style="min-width:60px;">页数</td>',

            body: '<td><div class="ui-checkbox" data="#docid"><i></i><span></span><input type="hidden" value="0" /></div></td>' +
                '<td>#docid</td>' +
                '<td><i class="#exten"></i><a href="/detail.htm?docid=#docid" target="_blank">#title</a></td>' +
                '<td>#typename</td>' +
                '<td>#preview页</td>' +
                '<td>#readpay</td>' +
                '<td>#downpay</td>' +
                '<td>#info</td>' +
                '<td>#readcount</td>' +
                '<td>#downcount</td>' +
                '<td>#pcount</td>'
        });
</script>